<?php require_once("includes/security.php"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>קליניקה נטורופתית</title>
<?php
require("includes/openConnection.php");
if(isset($_POST['submit'])  )
{

if(mysql_query("INSERT INTO contact (`id`, `name`, `phone`, `email`, `note`) VALUES (NULL, '{$_POST['fullname']}', '{$_POST['email']}', '{$_POST['phone']}', '{$_POST['noth']}');"))
echo "ההודעה נשלחה בהצלחה, נציג החברה יחזור אליך בהקדם";
else
echo "בעיה בשליחת ההודעה";
}

require("includes/closeConnection.php");
?>
</head>

<body>
<container id="container">
  <?php require("header.php"); ?>
      <content id="content">
      <contentTitle id="contentTitle">
      דף צור קשר
      </contentTitle>
      <contentText id="contentText">

<form action="" method="POST" >
    <table>
      <tr>
        <td>שם מלא:</td>
        <td><input type="text" name="fullname" id="fullname" maxlength="20" value="" /></td>
      </tr>
      <tr>
        <td>דוא"ל:</td>
        <td><input type="text" name="email" id="email" maxlength="60" value="" /></td>
      </tr>
      <tr>
        <td>טלפון:</td>
        <td><input type="text" name="phone" id="phone" maxlength="10" value="" /></td>
      </tr>
      <tr>
        <td>הודעה:</td>
        <td><textarea rows="10" cols="60" name="noth" id="noth" maxlength="300" value="" ></textarea></td>
      </tr>
      <tr>
        <td><input  type="submit" id="submit" name="submit" value="שלח"/></td>
        <td></td>
      </tr>
    </table>
  </form> 

</contentText>
      </content>
</container>
    
     
    
</body>
</html>
